@{
    ViewData["Title"] = "[tblTitle]";
}

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper no-margin" id="app">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            [tblTitle]
            <!--<small>advanced tables</small>-->
        </h1>
        <!--<ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Tables</a></li>
            <li class="active">Data tables</li>
        </ol>-->
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- 查询表单 -->
        <div class="builder-toolbar">
            <div class="row querydiv">
            </div>
        </div>


        <!--<div class="box-header with-border">
            <h3 class="box-title">Different Width</h3>
        </div>-->
        <div class="box box-body" style="margin-bottom: 0px;">

            <form class="form" id="formquery" method="post">
	[loop start]
                <label>[fldTitle]：</label>
                <label><input name="[fldName]" id="[fldName]" class="form-control autowidth" v-model="formdata.[fldName]" /></label>
	[loop end]^

                <label>
                    <input type="hidden" id="pageindex" name="pageindex" v-model="formdata.pageindex">
                    <input type="hidden" id="pagesize" name="pagesize" v-model="formdata.pagesize">
                    <a id="btnsubmit" class="btn btn-success btn-sm" onclick="getListData(1)">
                        <i class="fa fa-search"></i> 查询
                    </a>
                    <a id="btnadd" class="btn btn-warning  btn-sm" onclick="popupEdit(0)">
                        <i class="fa fa-plus-square"></i> 添加
                    </a>
                </label>

            </form>


        </div>
        <!-- /.box-body -->


        <div class="row">
            <div class="col-xs-12">
                <div class="box" style="border-top: 1px solid #d2d6de;">
                    <!-- /.box-header -->
                    <div class="box-body">
                        <table class="table table-bordered table-striped table-hover">
                            <thead>
                                <tr>
                                    <th>编号</th>
  [loop start]
                                    <th>[fldTitle]</th>
  [loop end]^
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr v-cloak :data-id="info.id" v-for="(info, index) in result.rows">
                                    <td>[[info.id]]</td>
  [loop start]
                                     <td>[[info.[fldName]]]</td>
  [loop end]^

                                    <td>
                                         @*<a class="btn btn-info btn-sm" href="javascript:;" v-on:click="popupView(info.id);">
                                             <i class="fa fa-pencil">
                                             </i>
                                             查看
                                         </a>*@
                                         <a class="btn btn-info btn-sm" href="javascript:;" v-on:click="popupEdit(info.id);">
                                             <i class="fa fa-pencil">
                                             </i>
                                             修改
                                         </a>
                                        <a class="btn btn-danger btn-sm" href="javascript:;" v-on:click="popupDelete(info.id);">
                                             <i class="fa fa-trash">
                                             </i>
                                             删除
                                         </a>	
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
        <!-- 分页 -->
        <div class="pagination ue-clear"></div>
    </section>
    <!-- /.content -->
</div>

<!-- /.content-wrapper -->

<script src="/admin/views/[subFolder]/[tblName]list.cshtml.js"></script>



